package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbOrderstatusValidatorGroup.*;

import com.cloudlead.commonData.vo.TbFleetOrder;
import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import com.cloudlead.commonData.vo.TbCustomerOrder;

/**
 * TbOrderstatus is a Codegen vo type
 */
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="customerOrder", rootField="customerOrderID")
,	@com.cloudlead.common.lang.annotation.BelongsTo(property="fleetOrder", rootField="fleetOrderID")
})
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbOrderstatus")
@Label("TbOrderstatus")
public class TbOrderstatus extends AbstractIdEntity<String> {

    private static final long serialVersionUID =24969253928731L;    
    @Size(max=500)
    @Label("操作内容")
    private String content;

    @Label("客户订单ID")
    private TbCustomerOrder customerOrder;

    @Label("车队订单ID")
    private TbFleetOrder fleetOrder;

    @Size(max=24)
    @NotNull(groups={Update.class})
    @Label("id")
    private String id;

    @Size(max=100)
    @Label("操作人")
    private String operator;

    @Label("时间")
    private DateTime time;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public TbCustomerOrder getCustomerOrder() {
        return customerOrder;
    }

    public void setCustomerOrder(TbCustomerOrder customerOrder) {
        this.customerOrder = customerOrder;
    }

    public TbFleetOrder getFleetOrder() {
        return fleetOrder;
    }

    public void setFleetOrder(TbFleetOrder fleetOrder) {
        this.fleetOrder = fleetOrder;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public DateTime getTime() {
        return time;
    }

    public void setTime(DateTime time) {
        this.time = time;
    }

    public String toString() {
         return String.format("TbOrderstatus { content : %s,customerOrder : %s,fleetOrder : %s,id : %s,operator : %s,time : %s }",content,customerOrder,fleetOrder,id,operator,time);
    }

}

